<!DOCTYPE html>
<html><head>
    <!-- base href="http://submit.hao123.com/static/auditSys/wztjnew.htm" -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>51干啥网--网站提交</title>
   <link href="wztjnew_data/subpage0803.css" rel="stylesheet" type="text/css">
  
  <style type="text/css">
	.m-box1-hd{background:url(bd-title.png) bottom repeat-x;}
	.ad-form{ color:#666;}
	.ad-form textarea,.ad-form input{ color:#666;}
	.ad-form .m-box1-title{ color:#666;}
	.ad-form-bd{ padding-top:28px;}
	.ad-form-bd label{width:160px; float:left; text-align:right; line-height:25px;}
	.ad-form-bd span{ line-height:25px; float:left; margin-left:8px; display:inline;}
	.ad-form-bd span.info{ color:#999; font-size:12px;}
	.ad-form-bd span.error{ color:red; font-size:14px;}
	.ad-form-bd input,.ad-form-bd textarea{ border:1px solid #BEBEBE;  background-color:#FFF; float:left; padding:3px;}
	.ad-form-bd textarea{width:626px; height:102px; overflow:auto;  border:1px solid #BEBEBE;}

	.ad-form-bd li{ float:left; width:100%; margin-top:8px; padding-bottom:2px;}
	.ad-width1{ width:290px;}
	.ad-width2{ width:200px;}
	.ad-width3{ width:100px;}
	.ad-form-bd-info,.ad-form-bd-submit{ margin-top:6px; font-size:12px; padding-left:160px;}
	.ad-form-bd-submit{ margin-bottom:20px;}
	.ad-form-bd-submit button{ border:none; background:url('submit.png') no-repeat; width:120px; height:31px; cursor:pointer;}
	.ad-info{  color:#666; line-height:34px; padding-left:45px;padding-top:15px; background:url(caipiao-dash.gif) repeat-x;  padding-bottom:20px; clear:both;}
	.ad-select{ margin-top:20px; margin-left:90px; }
	.ad-old-user{ display:none;}
	.error{ color:Red;}

	body{width:100%;height:100%; background:#FFF url(about:blank) fixed;}/*for ie6*/
	.dialog{ width:360px; height:200px; overflow:hidden; left:39%; top:30%; position:fixed; _position:absolute;z-index:999;
	_top:expression((document).documentElement.scrollTop+(document).documentElement.clientHeight/2-100);
	background:#fff;}
	.dialog .t{ width:auto; position:relative;}
	.dialog .close{ font-size:21px; font-weight:bold; line-height:normal; text-decoration:none !important; position:absolute; right:5px; top:-1px;}
	.dialog dd{ text-align:center;}
	.dialog .info{ margin:50px 10px 30px 10px; text-align:center; color:#000;}
	.dialog .btn-search{ cursor:pointer;}
	.dialog .ft-l{ margin-left:142px; float:left;}
	.dialog .ft-r{ margin-right:65px; float:right;}
	.dialog-mask{ left:0; top:0; width:100%;height:100%;position:fixed; _position:absolute; overflow:hidden;
	background:#000; z-index:998; opacity:0.3; filter: alpha(opacity=30);
	}
	.box-side .t{ height:30px; background-color:#F0F5FB;}
	.dialog-shim{width:100%;height:100%;position:absolute;top:0;left:0;z-index:-1;filter:alpha(opacity=0)}
	.dialog .btn{background: url("dialog-button-left.png") no-repeat scroll 0 0 transparent;
	cursor: pointer;
	float: left;
	height: 25px;
	margin: 10px;
	padding-left: 5px;
	}
	.dialog .btn span
	{
	background: url("dialog-button-right.png") no-repeat scroll right center transparent;
	border: medium none;
	color: #FFFFFF;
	cursor: pointer;
	float: left;
	height: 25px;
	line-height: 25px;
	padding: 0 7px 0 4px;
	}
	.ad-form-bd textarea{width:500px;}
  </style>
</head>
<body>

<div class="m-box1-bd ad-form-bd">
<form name="form1" id="wztj-form" action="/url-submit/index.php">
	<ul>
		<li><label>推荐网址：</label><input class="ad-wnameth1" value="http://" name="url" data-default="http://" maxlength="100" type="text"><span id="url-x" class="error"></span></li>
		<li><label>网站名称：</label><input class="ad-wnameth1" name="sitename" maxlength="50" type="text"><span id="sitename-x" class="error"></span></li>
		<li><label>QQ：</label><input class="ad-wnameth2" name="qq" maxlength="12" type="text"><span class="info">QQ,Email,电话选填一项即可</span><span id="qq-x" class="error"></span></li>
		<li><label>Email：</label><input class="ad-wnameth2" name="email" maxlength="70" type="text"></li>
		<li><label>电话：</label><input class="ad-wnameth2" name="phone" maxlength="30" type="text"></li>
		<li><label>推荐分类：</label><input class="ad-wnameth2" name="location" maxlength="30" type="text"><span id="location-x" class="error"></span></li>
		<li><label>网站描述：</label><textarea data-max="500" name="introduction"></textarea><span id="introduction-x" class="error"></span></li>
		<li><label>给hao123的意见：</label><textarea data-max="500" name="suggestion"></textarea><span id="suggestion-x" class="error"></span></li>
		<li class="ad-form-bd-info">如果您提交申请两周之后没有被收录，可能是因为您的网站还未达到我们的收录标准，<br>您可以等待一个月后再次提交，请不要重复提交。</li>
		<li class="ad-form-bd-submit"><button id="sbBtn" type="submit"></button></li>
	</ul>
	<input name="ac" value="submit" type="hidden">
</form>
</div>

<dl class="box box-side dialog" id="dialogBox" style="display:none">
	<dt class="t"><a id="dialogClose" class="close" href="#">×</a></dt>
	<dd>
		<p class="info" id="dialogInfo"></p>
		
		<a class="mod-list btn-search ft-l" id="dialogConfirm">
			<span class="btn">
			  <span>确定</span>
			</span>
		</a> 
	   
	</dd>
</dl>
<div class="dialog-mask" id="dialogMask" style="display:none">
<!--[if lt IE 7]>
<iframe class="dialog-shim" src="about:blank"></iframe>
<![endif]-->
</div>
 <script src="wztjnew_data/subpage0803.js" type="text/javascript"></script>
 <script src="wztjnew_data/validator.js" type="text/javascript"></script>
 <script type="text/javascript">
     function Dialog() {
         var doc = document,
	    form = doc.getElementById("wztj-form"),
		dialogMask = doc.getElementById("dialogMask"),
		dialogBox = doc.getElementById("dialogBox"),
		dialogInfo = doc.getElementById("dialogInfo"),
		dialogClose = doc.getElementById("dialogClose"),
        dialogConfirm=doc.getElementById('dialogConfirm'),
		win = window,
		ltIE7 = win.ActiveXObject && !win.XMLHttpRequest,
		body = document.body;

         if (ltIE7) {
             window.onresize = function () {
                 dialogMask.style.display !== "none" && dialog.fix();
             };
         }
        dialogConfirm.onclick= dialogClose.onclick = function (e) {
             dialog.hide();
            // form.reset();
         };
         dialogBox.onclick = function () {
             return false;
         };
         var dialog = {
             show: function (info) {
                 ltIE7 && this.fix();
                 dialogInfo.innerHTML = info;
                 dialogMask.style.display = dialogBox.style.display = "";
             },

             hide: function () {
                 dialogMask.style.display = dialogBox.style.display = "none";
             },

             //fix IE6 resize
             fix: function () {
                 dialogMask.style.height = body.offsetHeight;
                 dialogMask.style.width = body.offsetWidth;
             }
         };
         return dialog;
     }

     (function () {
         var dialog1 = Dialog(),
           requestURL = '/url-submit/',

           doc = document,

           loader = Hao.DataLoader(),
           formElem = doc.forms['form1'],

           v = Validate({
               form: document.forms['form1'],
               message: {
                   qq_require: 'QQ,Email,电话选填一项',
                   url_require:'请填写网址'
               },
               nameMap: {
                   phone: 'qq',
                   email: 'qq'
               },
               data: {
                   require: ['url', 'sitename', 'introduction', 'suggestion', 'location'],
                   submitRequire: [['qq', 'email', 'phone']],
                   max: ['introduction', 'suggestion'],
                   reg: [{ name: '', reg: ''}]
               }
           });

         formElem.onsubmit = function () {
             if (!v.validate()) { return false; }
             loader.load({
                 isGet: false,
                 requestURL: requestURL,
                 postForm: document.forms['form1'],

                 callBack: function (data) {
                     data = eval('(' + data.data + ')');

                     if (data.result) {
                         //document.forms['form1'].reset();
                         dialog1.show('推荐成功！');
                     }
                     else {
                         dialog1.show(data.reason ? data.reason : '推荐失败！请稍后重试！');
                     }
                 }
             });
             return false;
         }


     })();

 </script>



</body></html>
